Release 10.1A: OpenEdge Data Management:
SQL Reference


MONTHS_BETWEEN

Computes the number of months between two date values corresponding to the first and second arguments.

Syntax

MONTHS_BETWEEN ( date_expression, date_expression ) 

Example

This example illustrates the MONTHS_BETWEEN function:

SELECT MONTHS_BETWEEN (SYSDATE, order_date) 
    FROM orders
    WHERE order_no = 1002 ; 

Notes

Compatibility

Progress extension


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095